From c82ff605c76b11665a26b34ccd608b8f016f99ca Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 23 Jan 2007 14:47:26 +0000 Subject: [PATCH] bimodal: pvfb frontend Create a new node "protocol" in xenstore, add the protocol name it speaks there. Signed-off-by: Gerd Hoffmann --- linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c b/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c index 40846d1d09..0d7d4ca700 100644 --- a/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c +++ b/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -479,7 +480,7 @@ static int __devinit xenfb_probe(struct xenbus_device *dev, goto error_nomem; /* set up shared page */ - info->page = (void *)__get_free_page(GFP_KERNEL); + info->page = (void *)__get_free_page(GFP_KERNEL | __GFP_ZERO); if (!info->page) goto error_nomem; @@ -640,6 +641,10 @@ static int xenfb_connect_backend(struct xenbus_device *dev, irq_to_evtchn_port(info->irq)); if (ret) goto error_xenbus; + ret = xenbus_printf(xbt, dev->nodename, "protocol", "%s", + XEN_IO_PROTO_ABI_NATIVE); + if (ret) + goto error_xenbus; ret = xenbus_printf(xbt, dev->nodename, "feature-update", "1"); if (ret) goto error_xenbus; -- 2.30.2